package com.ggh.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ggh.entity.Menu;
import com.ggh.vo.ShowMenuVo;

import java.util.List;
import java.util.Map;

/**

 * @author ： jj
 * @date ：2019/10/14 11:55
 * @description : 菜单
 * @path : RoomRecordService.java.RoomRecordService
 * @modifiedBy ：
 */
public interface MenuService extends IService<Menu> {

    List<ShowMenuVo> getShowMenuByUser(String userId);

    List<Menu> selectAllMenus(Map<String,Object> map);

    List<Menu> selectAllMenuList(Map<String,Object> map);

    Menu selectById(String parentId);

    Integer getCountByName(String name);

    Integer getCountByPermission(String permission);

    Integer selectFirstLevelMenuMaxSort();

    Integer seleclMenuMaxSortByPArentId(String parentId);

    void saveOrUpdateMenu(Menu menu);

    List<ShowMenuVo> getAlls();
}
